package com.zengde.ai_sandbox.test.testthread.casnio;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Random;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BetWinTask implements Runnable{

    private Casnioer casnioer;

    @Override
    public void run() {
        casnioer.earnMoney(new Random().nextInt(0,1000));
    }
}
